package com.ruoyi.api.utils;

import com.ruoyi.api.config.WxProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ApiUserUtils {

	@Autowired
	private WxProperties wxProperties;

	/**
	 * 替换字符串
	 */
    public String getWebAccess(String code) {
        return String.format(wxProperties.getWebAccessTokenHttps(), wxProperties.getAppId(), wxProperties.getSecret(), code);
    }

}
